package wode.entity;
import wode.view.GamePanel;
import java.util.Random;

public class CreateEnemy extends Thread{
    Random random=new Random();
    @Override
    public void run() {
        for (int i = 0; i < 6; i++) {
            try {
                EnemyPlane e=new EnemyPlane();
                e.x=random.nextInt(650)+50;
                e.y=-150;
                GamePanel.arrayList1.add(e);
                Thread.sleep(200);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}